TouchPoint

public final static TouchPoint TouchPoint(Integer id, TouchPoint.State state, Point positionInScreen, Point positionInWidget, Float force, Float radiusX, Float radiusY, Float rotationAngle)
public final static TouchPoint TouchPoint(Integer id, TouchPoint.State state, Point positionInScreen, Point positionInWidget, Float force, Float radiusX, Float radiusY, Float rotationAngle)

Creates a new instance of TouchPoint with the given parameters.

Since

8.0.0

Parameters

id

The unique identifier of the touch point. All touch events for this touch point must use the same identifier while it is active.

state

The state of the touch point.

positionInScreen

The position of the touch point relative to the screen.

positionInWidget

The position of the touch point relative to the widget.

force

The force applied at the touch point, in the range of 0..1, where 0 indicates no pressure and 1 indicates maximum pressure.

radiusX

The X-axis radius of the touch ellipse.

radiusY

The Y-axis radius of the touch ellipse.

rotationAngle

The touch rotation angle.